import request from '@/utils/request'

export function listwasteCategory(query) {
  return request({
    url: '/wasteCategory/list',
    method: 'get',
    params: query
  })
}

export function createwasteCategory(data) {
  return request({
    url: '/wasteCategory/create',
    method: 'post',
    data
  })
}

export function readwasteCategory(data) {
  return request({
    url: '/wasteCategory/get/' + data.wasteCategoryId,
    method: 'get'
  })
}

export function updatewasteCategory(data) {
  return request({
    url: '/wasteCategory/update',
    method: 'post',
    data
  })
}

export function deletewasteCategory(data) {
  return request({
    url: '/wasteCategory/delete/' + data.wasteCategoryId,
    method: 'delete'
  })
}

export function setStatus(data) {
  return request({
    url: '/wasteCategory/setStatus',
    method: 'post',
    data
  })
}
